#ifndef SCENE_H
#define SCENE_H

#include <QWidget>
#include <QLabel>
#include <QPen>
#include <QString>
#include <QMessageBox>
#include <QPainter>
#include <cstdio>
#include <QMouseEvent>
#include <QCoreApplication>
#include <linklist.h>
#include <QDebug>

class scene : public QLabel
{
    Q_OBJECT
public:
    explicit scene(QWidget *parent = nullptr);
    void tranfig();
    void mousePressEvent(QMouseEvent *p);
    void paintEvent(QPaintEvent *p);
    void getx(double& x1,double& x2);
    void gety(double& y1,double& y2);
    void geto(double& o1,double& o2);
    void write(QString file,double x0,double t0,double xu,double y0,double t1,double yu);
signals:
private:
    double x,y;
    bool fig;
    LinkList record;
};

#endif // SCENE_H
